'''
打印这个图形
4
   *
  **
 ***
****
 ***
  **
   *
'''

# n = eval(input('请输入'))
# for i in range(n - 1, -n, -1):
#     s = ' ' * abs(i) + '*' * (4 - abs(i))
#     print(s)

n = eval(input('请输入'))
for i in range(n - 1, -n, -1):
    s = ' ' * abs(i)
    print(s.ljust(n, '*'))
